#ifndef __DRAWBALL_H__
#define __DRAWBALL_H__
// #include <GL/glut.h>
#include "Shapes.h"
#define WINDOW_SIZE (400)
// 小球半径
#define BALLRADIUS (20)
// 重力加速度, 与坐标轴正方向相反
#define GRAVITY_ACCE (-9.8*5)

#define FREE_FALL 1

unsigned deltaMsec;
unsigned windowWidth;
unsigned windowHeight;
unsigned ballRadius;
GLdouble xInitalSpeed;
GLdouble yInitalSpeed;


// Rect box;
Sphere ball;

void onRenderScene(void);
void inital();
void onChangeSize(GLsizei w, GLsizei h);
void onTimeChange(int value);
void idle(void);
void SetupLights();

#endif //__DRAWBALL_H__